<?php
//简单管理页面范例，在你的管理页面引用coresection/checkA.php就OK，
//当然，不要忘了添加注销登录的链接
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'contact'");
?>

<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];

?>


<?

$contact=select_one_line_all_items($table_Prefix.$system_part,"nid = 0");

$site=select_one_line_all_items($table_Prefix."site","nid > 0");

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once('../modules/head.php'); ?>

<!--kindeditor编辑器-->
<link rel="stylesheet" href="../keditor/themes/default/default.css" />
<script charset="utf-8" src="../keditor/kindeditor-all.js"></script>
<script charset="utf-8" src="../keditor/lang/zh_CN.js"></script>
<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="ai_detail"]', {
					allowFileManager : true
				});
 
			});
			
			var editor1;
			KindEditor.ready(function(K) {
				editor1 = K.create('textarea[name="ai_introduce"]', {
					allowFileManager : true
				});
 
			});
          
            </script>
<!--kindeditor编辑器-->
 >
</head>

<body>

<div id="topbar">
<!--TopBar端點01-->
<?php include '../modules/topbar.php'; ?>
<!--TopBar端點02-->
</div>

<div id="container">
<!--Container端點01-->
<div id="maincontent">
<!--maincontent端點01-->

<div id="sidebar">
<?php include '../modules/sidebar.php'; ?>
</div>


<div id="content" class="contact">
        <?php $page_title='联系信息';?>
        <?php include ROOT_PATH_.'/controlbase/modules/mod-page-title.php'; ?>


<div class="detail-box ">


<ul class="detail-boxes detail-boxing">
<form id="contact_detail" method="post"
      class="layui-form "
      action="save.php" enctype="multipart/form-data"
      name="uploadfile">

            <input name="nid" type="hidden" value="<?php echo $contact['nid']?>" />


    <li class="layui-form-item cnname"><label class="layui-form-label">中文名字：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_cnname" size="20"
                                              value="<? echo $contact['cnname'] ?>"></div>
    </li>
    <li class="layui-form-item enname "><label class="layui-form-label">英文名字：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_enname" size="20"
                                              value="<? echo $contact['enname'] ?>"></div>
    </li>


    <li class="layui-form-item banner">
        <label class="layui-form-label">项目横幅：</label>
        <img src="../../uploadfiles/<? echo $theme_folder ?>/<? echo $contact['banner'] ?>" width="100"/>
    </li>


    <li class="layui-form-item banner">
        <label class="layui-form-label">上传文件：</label>
        <input type="file" name="banner" onchange="fileChange(this);"/>
    </li>


    <li class="layui-form-item qrcode"><label class="layui-form-label">二维码：</label><img
            src="../../uploadfiles/<? echo $theme_folder ?>/<? echo $contact['qrcode'] ?>" width="100"/></li>
    <li class="layui-form-item qrcode"><label class="layui-form-label">上传文件：</label><input type="file" name="qrcode"
                                                                                           onchange="fileChange(this);"/>
    </li>





    <li class="layui-form-item introduce">
        <label class="layui-form-label">公司简介：</label>
        <div class="layui-input-block" style="width: 800px; ">
            <textarea name="ai_introduce"  style="width:800px;height:400px;visibility:hidden;" >
                <?echo  $contact['intudcero']?>
            </textarea

        </div>
    </li>

    <li class="layui-form-item contact ">
        <label class="layui-form-label">联系详情：</label>
        <div class="layui-input-block"     style="width: 800px;">
           <textarea name="ai_detail" style="width:800px;height:400px;visibility:hidden; ">
               <? echo $contact['detail'] ?>
           </textarea>
        </div>
    </li>


    <li class="layui-form-item qq "><label class="layui-form-label">联系QQ：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_qq" size="20"
                                              value="<? echo $contact['qq'] ?>"></div>
    </li>
    <li class="layui-form-item email "><label class="layui-form-label">电子邮箱：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_email" size="20"
                                              value="<? echo $contact['email'] ?>"></div>
    </li>
    <li class="layui-form-item phone "><label class="layui-form-label">联系电话：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_phone" size="20"
                                              value="<? echo $contact['phone'] ?>"></div>
    </li>
    <li class="layui-form-item mobile"><label class="layui-form-label">移动电话：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_mobile" size="20"
                                              value="<? echo $contact['mobile'] ?>"></div>
    </li>
    <li class="layui-form-item businesshours"><label class="layui-form-label">服务时间：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_severtime" size="20"
                                              value="<? echo $contact['severtime'] ?>"></div>
    </li>
    <li class="layui-form-item address"><label class="layui-form-label">联系地址：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_address" size="20"
                                              value="<? echo $contact['address'] ?>"></div>
    </li>
    <li class="layui-form-item zipcode"><label class="layui-form-label">邮政编码：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_zipcode" size="20"
                                              value="<? echo $contact['zipcode'] ?>"></div>
    </li>
    <li class="layui-form-item fax"><label class="layui-form-label">传真号码：</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ai_fax" size="20" value="<? echo $contact['fax'] ?>">
        </div>
    </li>

    <li class="layui-form-item skype"><label class="layui-form-label">SKYPE：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_skype" size="20"
                                              value="<? echo $contact['skype'] ?>"></div>
    </li>

    <li class="layui-form-item wechat"><label class="layui-form-label">官方微信：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_weixin" size="20"
                                              value="<? echo $contact['weixin'] ?>"></div>
    </li>


    <li class="layui-form-item facebook"><label class="layui-form-label">facebook：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_facebook" size="20"
                                              value="<? echo $contact['facebook'] ?>"></div>
    </li>

    <li class="layui-form-item whatsapp"><label class="layui-form-label">whatsapp：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_whatsapp" size="20"
                                              value="<? echo $contact['whatsapp'] ?>"></div>
    </li>


    <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>


    <hr/>
    <div class="function">
        <input type="submit" class="layui-btn" value="确认"/>
        <input type="reset" class="layui-btn" value="重置"/>
    </div>


</form>
</ul>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat" />
</div>
<!--container端點01-->
</div>



<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>
</body>
</html>
